package com.cj.cms.web;

import com.cj.common.security.springsecurity.SpringSecurityUtils;
import com.cj.common.web.struts2.BaseActionSupport;

public class BaseWebAction extends BaseActionSupport{
	private Integer isLogin = 0;

	public Integer getIsLogin() {
		String name = SpringSecurityUtils.getCurrentUserName();
		if(name == null || "roleAnonymous".equalsIgnoreCase(name))
			return 0;
		return 1;
	}

	public void setIsLogin(Integer isLogin) {
		this.isLogin = isLogin;
	}
	
}
